/* Bear风格的Markdown主题 */
.markdown-body.bear {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
}

.markdown-body.bear h1,
.markdown-body.bear h2,
.markdown-body.bear h3,
.markdown-body.bear h4,
.markdown-body.bear h5,
.markdown-body.bear h6 {
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 1em;
  color: #d33682;
}

.markdown-body.bear h1 {
  font-size: 2em;
  line-height: 1.2;
}

.markdown-body.bear h2 {
  font-size: 1.5em;
  line-height: 1.3;
}

.markdown-body.bear h3 {
  font-size: 1.25em;
}

.markdown-body.bear h4 {
  font-size: 1em;
}

.markdown-body.bear p {
  margin-bottom: 1.2em;
}

.markdown-body.bear a {
  color: #1e88e5;
  text-decoration: none;
  border-bottom: 1px solid rgba(30, 136, 229, 0.3);
}

.markdown-body.bear a:hover {
  border-bottom: 1px solid #1e88e5;
}

.markdown-body.bear blockquote {
  margin: 1em 0;
  padding: 0 1em;
  color: #6a737d;
  border-left: 3px solid #d33682;
}

.markdown-body.bear code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  background-color: rgba(0, 0, 0, 0.04);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
  color: #d33682;
}

.markdown-body.bear pre {
  background-color: #f6f8fa;
  padding: 16px;
  border-radius: 3px;
  overflow-x: auto;
  margin: 1.2em 0;
}

.markdown-body.bear pre code {
  background-color: transparent;
  padding: 0;
  color: #333;
}

.markdown-body.bear img {
  max-width: 100%;
  margin: 1.2em auto;
  display: block;
  border-radius: 4px;
}

.markdown-body.bear hr {
  border: none;
  border-top: 1px solid #eaecef;
  margin: 2em 0;
}

.markdown-body.bear ul,
.markdown-body.bear ol {
  margin-bottom: 1.2em;
  padding-left: 2em;
}

.markdown-body.bear li {
  margin-bottom: 0.5em;
}

.markdown-body.bear table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.2em 0;
  border: 1px solid #eaecef;
}

.markdown-body.bear table th,
.markdown-body.bear table td {
  border: 1px solid #eaecef;
  padding: 8px 12px;
  text-align: left;
}

.markdown-body.bear table th {
  background-color: #f6f8fa;
  font-weight: 600;
}

.markdown-body.bear table tr:nth-child(even) {
  background-color: #f6f8fa;
}

/* Bear特有的样式 */
.markdown-body.bear strong {
  font-weight: 600;
  color: #d33682;
}

.markdown-body.bear em {
  font-style: italic;
  color: #6a737d;
}

.markdown-body.bear .tag {
  color: #1e88e5;
  font-weight: 500;
}

/* Bear暗色模式 */
.markdown-body.bear.dark {
  color: #e0e0e0;
  background-color: #1e1e1e;
}

.markdown-body.bear.dark h1,
.markdown-body.bear.dark h2,
.markdown-body.bear.dark h3,
.markdown-body.bear.dark h4,
.markdown-body.bear.dark h5,
.markdown-body.bear.dark h6 {
  color: #ff79c6;
}

.markdown-body.bear.dark a {
  color: #8be9fd;
  border-bottom: 1px solid rgba(139, 233, 253, 0.3);
}

.markdown-body.bear.dark a:hover {
  border-bottom: 1px solid #8be9fd;
}

.markdown-body.bear.dark blockquote {
  color: #a0a0a0;
  border-left: 3px solid #ff79c6;
}

.markdown-body.bear.dark code {
  background-color: #282a36;
  color: #ff79c6;
}

.markdown-body.bear.dark pre {
  background-color: #282a36;
}

.markdown-body.bear.dark pre code {
  color: #f8f8f2;
}

.markdown-body.bear.dark table th,
.markdown-body.bear.dark table td {
  border: 1px solid #444;
}

.markdown-body.bear.dark table th {
  background-color: #282a36;
}

.markdown-body.bear.dark table tr:nth-child(even) {
  background-color: #282a36;
}

.markdown-body.bear.dark strong {
  color: #ff79c6;
}

.markdown-body.bear.dark em {
  color: #a0a0a0;
}

.markdown-body.bear.dark .tag {
  color: #8be9fd;
} 